package com.example.crm.service;

import com.example.crm.entity.User;

import java.util.List;

/**
 * @author lenovo
 */
public interface IUserService {
    /**
     * 登录
     * @param usrName
     * @param usrPassword
     * @return
     */
    public User login(String usrName,String usrPassword);

    /**
     * 添加
     * @param user
     * @return
     */
    public int addUser(User user);

    /**
     * 删除
     * @param usrId
     * @return
     */
    public int deleteUser(Long usrId);

    /**
     * 修改
     * @param user
     * @return
     */
    public int updateUser(User user);

    /**
     * 根据usrId查询
     * @param usrId
     * @return
     */
    public User getUser(Long usrId);

    /**
     * 查询用户信息
     * @return
     */
    public List<User> findAllUsers();
}
